package battleship;
import javax.swing.JOptionPane;

/**
 *
 * @author Shaun Pickford
 */
public class InputCoordinate {

    boolean inputError = false;
    /* No-arg constructor */
    public void InputCoordinate(){
    }//InputCoordinate


    /* Using JOptionPane, this method prompts for a coordinate from the user */
    public String promptForCoordinate(){
        String coordinate;
        /* Get coordinate from  user */
        coordinate = JOptionPane.showInputDialog(null, "Enter a letter/number coordinate (ex: A5 or C9) between A1 and J10:", "Your Turn!", 1);
        
        return coordinate;
    }//promptForCoordinate
}//class
